import request from "../utils/request";

export default {
  //分页查询课程
  getCourseList(page, limit, searchObj) {
    return request({
      url: `/eduservice/courseFront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  //查询所有分类
  getAllSubject() {
    return request({
      url: `/eduservice/subject/getAllSubject`,
      method: 'get'
    })
  },
  //查询课程详情
  getCourseInfo(id) {
    return request({
      url: `/eduservice/courseFront/getFrontCourseInfo/${id}`,
      method: 'get'
    })
  }

}
